package com.firefightingiot_data.data.web.web;

import cn.hutool.json.JSONObject;
import com.firefightingiot_data.data.common.base.BaseController;
import com.firefightingiot_data.data.support.annotaion.Action;
import com.firefightingiot_data.data.support.annotaion.At;
import com.firefightingiot_data.data.support.model.RespEntity;
import com.firefightingiot_data.data.web.service.ItemSetupService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

@Action
@RequestMapping(value="itemSetup")
public class ItemSetupController extends BaseController {
     @Resource
     public ItemSetupService itemSetupService;

    /**
     * 监测项列表
     * @param jsonParam
     * @return
     */
    @At(value = "getItemSetupList", method = RequestMethod.POST)
    public RespEntity getItemSetupList(@RequestBody(required = false) JSONObject jsonParam) {
        return itemSetupService.getItemSetupList(jsonParam);
    }

}
